package cn.stronglink.asset.module.hardware.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.plugins.Page;
import cn.stronglink.asset.module.hardware.mapper.HardwareMapper;

@Service
@Transactional(rollbackFor=Exception.class) 
public class HardwareService {

	@Autowired
	private HardwareMapper hardMapper;

	@Transactional(propagation=Propagation.NOT_SUPPORTED,readOnly=true)
	public Page<HashMap<String,Object>> queryHardList(Page<HashMap<String, Object>> page, Map<String, Object> params) {
		// 查询列表
		List<HashMap<String,Object>> hardwareList =hardMapper.queryList(page,params);
		page.setRecords(hardwareList);
		return page;
	}
}
